<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 *订单管理
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'list';
$return=array();
if($_RQ['op']=='list'){
	$item=$this->get('member',array('mid'=>intval($_RQ['mid']),'uniacid'=>$_SESSION['uniacid']));
	if(!$item){
		exi('指定会员不存在！','error');
	}
	$isda=intval($_RQ['isa']);
	$member=cfc('core')->member_show($item['mid']);
	$return['childrens']=$this->model('model')->getmypaimids($item['mid'],$isda);
	$desc=$_RQ['isa']?'大粉丝群':'小粉丝群';
	$return['htmls']=array(
		'type'=>'edit',
		'desc'=>$desc.'排位图',
		'edit'=>array(
			array('type'=>'echarts_tree','ecid'=>'paiwei','title'=>'【'.$member['nickname'].'】'.$desc.'排位图(默认展开8层，点击可以展开更多)','datas'=>array(
				'datas'=>array('name'=>$member['nickname']?:'本人','children'=>$return['childrens'])
			)),
		),
	);
	exi($return);
}
